package com.example.test.serial;

import java.io.Serializable;

public class Salary implements Serializable {

    private static final long serialVersionUID = -5088426814301908583L;

    //基本工资
    private int basePay;

    //绩效工资
    private  int bonus;

    public Salary(int basePay, int bonus) {
        this.basePay = basePay;
        this.bonus = bonus;
    }

    public int getBasePay() {
        return basePay;
    }

    public void setBasePay(int basePay) {
        this.basePay = basePay;
    }

    public int getBonus() {
        return bonus;
    }

    public void setBonus(int bonus) {
        this.bonus = bonus;
    }

    @Override
    public String toString() {
        return "Salary{" +
                "basePay=" + basePay +
                ", bonus=" + bonus +
                '}';
    }
}
